package com.attain.service;

import com.attain.pojo.News;

import java.util.List;

public interface NewsService {
    void addNews(News news, Integer userId);
    List<News> getAllNews();
    News getNewsById(Integer id);
    void updateNews(News news);
    void deleteNews(Integer id);
}